<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>分销商用户修改密码</title>

</head>
<body>
	<div id="passwd_div">
		<div id="showmsg_div">
			<span style="color:#FF0000;">${SHOW_MESSAGESS!""}</span>
		</div>
		<form id="passwdform" action="${basepath}/user/passwd/modify.htm" method="post">
			<input type="hidden" name="_method" value="put" />
			<table id="passwd_table">
				<tr>
					<th>
						<lable>旧密码:</lable>
					</th>
					<td>
						<input type="password" id="oldpasswd" /> 
						<input type="hidden" name="oldpasswd" id="old_password_md5"/>
					</td>
					<th><div id="oldpasswdTip" style="width:280px"></div></th>				
				</tr>
				<tr>
					<th>
						<lable>新密码:</lable>
					</th>
					<td>
						<input type="password" id="newpasswd" /> 
						<input type="hidden" name="newpasswd" id="new_password_md5"/>
					</td>
					<th><div id="newpasswdTip" style="width:280px"></div></th>				
				</tr>
				<tr>
					<th>
						<lable>再次输入新密码:</lable>
					</th>
					<td>
						<input type="password" id="newpasswd2" /> 
					</td>
					<th><div id="newpasswd2Tip" style="width:280px"></div></th>				
				</tr>
				<tr>
					<td colspan="3">
						<input type="submit" id="btnSubmit" value="提交" /> 
					</td>
				</tr>
			</table>
		<form>
	</div>
</body>

<script type="text/javascript" src="${basepath}/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="${basepath}/js/formValidator/formValidator-4.1.1.js"></script>
<script type="text/javascript" src="${basepath}/js/formValidator/formValidator-4.1.1.js"></script>

<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({theme:"126",submitOnce:true,formID:"passwdform"});
	$("#oldpasswd").formValidator({onShowFixText:"请输入旧密码",onShow:"请输入旧密码!"}).inputValidator({min:1,onError:"旧密码不能为空,请确认"});
	$("#newpasswd").formValidator({onFocus:"1~16个字符，包括字母、数字、特殊符号，区分大小写",onShow:"请输入密码",onFocus:"至少1个字符",onCorrect:"密码合法"}).inputValidator({min:1,max:16,onError:"密码不能为空,请确认"});
	$("#newpasswd2").formValidator({onShowFixText:"请再次输入密码",onShow:"输再次输入密码",onFocus:"至少1个字符",onCorrect:"密码一致"}).inputValidator({min:1,onError:"重复密码不能为空,请确认"}).compareValidator({desID:"newpasswd",operateor:"=",onError:"2次密码不一致,请确认"});
});
</script>
</html>
